package com.education.ai.dao;

import com.education.ai.entity.StudentMistakeCollection;
import java.util.List;

/**
 * 学生错题集DAO接口
 */
public interface StudentMistakeCollectionDao {
    
    /**
     * 保存错题记录
     */
    StudentMistakeCollection save(StudentMistakeCollection mistake);
    
    /**
     * 根据ID查找
     */
    StudentMistakeCollection findById(Long id);
    
    /**
     * 根据学生ID查找所有错题
     */
    List<StudentMistakeCollection> findByStudentId(String studentId);
    
    /**
     * 根据学生ID和学科查找错题
     */
    List<StudentMistakeCollection> findByStudentIdAndSubject(String studentId, String subject);
    
    /**
     * 根据学生ID和习题ID查找错题
     */
    List<StudentMistakeCollection> findByStudentIdAndExerciseId(String studentId, Long exerciseId);
    
    /**
     * 删除错题
     */
    void deleteById(Long id);
    
    /**
     * 批量保存错题
     */
    List<StudentMistakeCollection> saveAll(List<StudentMistakeCollection> mistakes);
} 